{% extends "tester/base.html" %}
{% load i18n %}

{% block bodyclass %}login{% endblock %}

{% block content_title %}{% endblock %}

{% block breadcrumbs %}{% endblock %}

{% block content %}
		<div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
			<ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
				<li class="ui-state-default ui-corner-top"><a href="/tester/ping/">Ping</a></li>
				<li class="ui-state-default ui-corner-top"><a href="/tester/traceroute/">Traceroute</a></li>
				<li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-focus"><a href="/tester/host/">Host</a></li>
				<li class="ui-state-default ui-corner-top"><a href="/tester/netcat/">Netcat</a></li>
				<li class="login-info">
					{% if user.is_active and user.is_staff %}
						<div id="user-tools">
							{% trans 'logged as:' %}
							<strong>{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</strong> <span class="delimiter">|</span> 
							{% block userlinks %}
								{% url 'django-admindocs-docroot' as docsroot %}
								{% if docsroot %}
									<a href="{{ docsroot }}">{% trans 'Documentation' %}</a>
								{% endif %}
								{% url 'admin:password_change' as password_change_url %}
								{% if password_change_url %}
									<a href="{{ password_change_url }}">
								{% else %}
									<a href="/../accounts/password_change/">
								{% endif %}
								{% trans 'Change password' %}</a> <span class="delimiter">|</span>
								{% url 'admin:logout' as logout_url %}
								{% if logout_url %}
									<a href="{{ logout_url }}">
								{% else %}
									<a href="/../accounts/logout/">
								{% endif %}
								{% trans 'Log out' %}</a>
							{% endblock %}
						</div>
					{% endif %}
				</li>
			</ul>
		</div>
		<form id="myForm" method="post" action="/tester/host/">
			<div class="">
				<div class="content">
					<div class="content-top-left"></div>
					<div class="content-top">
						</br>
						<h2><em>HOST command</em></h2>
						<p class="info" style="width: 787px"><B>host</B> [ <B>-46aCdlriTwv</B> ]  [ <B>-c </B><I>class</I><B></B> ]  [ <B>-N </B><I>ndots</I><B></B> ]  [ <B>-R </B><I>number</I><B></B> ]  [ <B>-t </B><I>type</I><B></B> ]  [ <B>-W </B><I>wait</I><B></B> ]  <B>name</B></p>
					</div>
					<div class="content-top-right"></div>
				</div>
				</br>
				<div style="width:70%; float:left">
						<fieldset>
							<legend>
								Options
							</legend>
							<table cellpadding="0" cellspacing="0" border="0" class="params-table">
								<thead>
								</thead>
								<tbody>
									{% for field in forOptionsForm %}
										{% for key, value in forOptionsPermissions.items %}
											{% if value %}
												{% if field.name == key %}
													<tr>
														<td class="param-cell">
															{{ field.label }}
														</td>
														<td class="cb-cell">
															{{ field }}
														</td>
														<td class="description-cell">
															{{ field.help_text }}
														</td>
													</tr>
												{% endif %}
											{% endif %}
										{% endfor %}
									{% endfor %}
								</tbody>
								<tfoot>
								</tfoot>
							</table>
						</fieldset>
					</div>
				<div style="width:30%; float:right">
					<fieldset>
						<legend>
							Parameters
						</legend>
						<table cellspacing="0" cellpadding="0" border="0" class="parameters-table">
								{% for field in forParametersForm %}
									{% for key, value in forParametersPermissions.items %}
										{% if value %}
											{% if field.name == key %}
												<tr>
													<td>
														<b> {{ field.label }}</b>
														<i> {{ field.help_text }}</i>
													</td>
													<td>
														{{ field }}
													</td>
												</tr>
												{% if field.errors %}
													<tr>
														<td colspan="2" style="color:Red;font-weight:bold;font-size:11px;">
															{% for error in field.errors %}
																<b>{{ error|escape }}</b>
															{% endfor %}
														</td>
													</tr>
												{% endif %}
											{% endif %}
										{% endif %}
									{% endfor %}
								{% endfor %}
							<tr>
								<td>
									<i> {{ nameForm.name.help_text }}</i>
								</td>
								<td>
									{{ nameForm.name }}
								</td>
							</td>
							{% if nameForm.name.errors %}
								<tr>
									<td colspan="2" style="color:Red;font-weight:bold;font-size:11px;">
										{% for error in nameForm.name.errors %}
											<b>{{ error|escape }}</b>
										{% endfor %}
									</td>
								</tr>
							{% endif %}
							<tr>
								<td colspan="2">
									<button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary ui-state-hover" style="float:right; width:120px" role="button" type="submit" aria-disabled="false">
										<span class="ui-button-icon-primary ui-icon ui-icon-circle-check"></span><span class="ui-button-text">Execute</span>
									</button>
								</td>
							</tr>
						</table>
					</fieldset>
				</div>
			</div>
		</form>
{% endblock %}
